<admintpl file="header"/>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
   <ul class="nav nav-tabs">
     <li class="active"><a href="{:U('user/index')}">代理商列表</a></li>
     <li><a href="{:U('Agent/add')}">添加代理商</a></li>
  </ul>
   <div class="table_list">
   <table width="100%" cellspacing="0" class="table table-hover">
        <thead>
          <tr>
            <th width="50">#</th>
            <th>代理名称/用户名</th>
            <th>联系方式</th>
            <th>联系人</th>
            <th>域名</th>
          	<th>地区</th>
          	<th>开通时间</th>
            <th>最后登录IP</th>
            <th>最后登录时间</th>
            <th>E-mail</th>
            <th width="120">管理操作</th>
          </tr>
        </thead>
        <tbody>
        <foreach name="users" item="vo">
          <tr>
            <td>{$vo.did}</td>
            <td>{$vo.agent_name}/{$vo.user_login}</td>
            <td>{$vo.agent_tel}</td>
            <td>{$vo.agent_ren}</td>
            <td>{$vo.agent_dome}</td>
            <td>{$areData[$vo["s_province"]]}-{$areData[$vo["s_city"]]}-{$areData[$vo["s_county"]]}  </td>
            <td>{$vo.join_time|date='Y-m-d',###}</td>
            <td>{$vo.last_login_ip}</td>
            <td>
	            <if condition="$vo['last_login_time'] eq 0">
	            该用户还没登陆过
	            <else />
	            {$vo.last_login_time}
	            </if>
            </td>
            <td>{$vo.user_email}</td>
            <td>
	            <if condition="$Think.session.ADMIN_ID neq 1">
	            <font color="#cccccc">修改</font> | 
	            <font color="#cccccc">删除</font>
	            <else />
	            <a href='{:U("agent/edit",array("id"=>$vo["id"]))}'>修改</a> | 
	            <a class="J_ajax_del" href="{:U('agent/delete',array('id'=>$vo['id']))}">删除</a>
	            </if>
            </td>
          </tr>
         </foreach>
        </tbody>
      </table>
      <div class="pagination">{$page}</div>
   </div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>